<template>
  <div>
      shop
  </div>
</template>

<script>
import axios from "axios"
import {reqcartlist} from "../../http/http"
export default {
   data(){
     return {
       //1 初始化购物车数据
       arr:[]
     }
   },
   mounted(){
     //2 发请求，获取购物车的数据
     reqcartlist({uid:JSON.parse(localStorage.getItem("isLogin")).uid}).then(res=>{
       console.log(res);
     })
   }
}
</script>

<style>

</style>